<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list page</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
	<div id="container">
		<h2>Users List</h2>
		<hr />
		<table id="table" border="1" cellpadding="0" cellspacing="0" width="100%">
			<thead>
				<tr>
					<th>UserId</th>
					<th>UserName</th>
					<th>UserAge</th>
					<th>UserEmail</th>
					<th>UserOper</th>
				</tr>
			</thead>
			<c:forEach items="${users }" var="user">
				<tr>
					<td>${user.id }</td>
					<td>${user.username }</td>
					<td>${user.age }</td>
					<td>${user.email }</td>
					<td align="center"><a href="add.jsp">Add</a> <a href="toUpdate.action?user.id=${user.id }">Edit</a> <a href="del.action?user.id=${user.id }">Del</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>